import { request } from "~/utils/request";
//登录
export const login = (data: any) => request("/user/login", data);
//注册
export const register = (data: any) => request("/user/register", data);
//用户修改
export const update = (data: any) => request("/user/update", data);
//获取用户详情
export const getUser = (data: any) => request("/user/getUser/" + data);
//用户列表
export const userList = () => request("/user/list");
//用户删除
export const userDelete = (data: any) => request("/user/delete/" + data);
